function $_O(id)
{
	return document.getElementById(id);
}

function change_img(img_id, img_path)
{
	var rand = Math.round((Math.random()) * 100000000);
	var img  = $_O(img_id);
	
	img.src = img_path + '?r=' + rand;

	return true;
}

function display_img(div_id, img_id, img_path)
{
	var div = $_O(div_id);
	var img  = $_O(img_id);
	
	if(img.src=='')
	{
		change_img(img_id, img_path);
	}

	if(div.style.display=='none')
        {
                div.style.display = 'block';
        }

	return true;
}
